import os

basedir = os.path.abspath(os.path.dirname(__file__))


class Config(object):
    DEBUG = True
    TESTING = False
    SECRET_KEY = 'secret'
    MONGO_URI="mongodb://qiaqia:qiaqia@ubun:27017/test"
    MONGO_PORT=27017


class DevConfig(Config):
    DEBUG = True


class ProdConfig(Config):
    pass


class TestConfig(Config):
    TESTING = True


config = {
    'dev': DevConfig,
    'prod': ProdConfig,
    'test': TestConfig
}
